import api from "../utils/http";
export const searchFriendAPI = (data) => {
  return new Promise((resolve) => {
    api.get("/searchFriends", { params: data }).then((res) => {
      resolve(res.data);
    });
  });
};
export const addFriendAPI = () => {
  return new Promise((resolve) => {
    api.get("/addFriend").then((res) => {
      resolve(res.data);
    });
  });
};
